﻿package com.vicentediaz.view.contact
{
    import com.greensock.*;
    import com.vicentediaz.data.*;
    import flash.display.*;
    import flash.events.*;

    dynamic public class ContactEmailButton extends Sprite
    {
        public var base:MovieClip;
        public var arrow:MovieClip;

        public function ContactEmailButton()
        {
            addEventListener(MouseEvent.ROLL_OVER, this.onButtonRollOver, false, 0, true);
            addEventListener(MouseEvent.ROLL_OUT, this.onButtonRollOut, false, 0, true);
            buttonMode = true;
            return;
        }// end function

        private function onButtonRollOut(param1:MouseEvent) : void
        {
            TweenMax.to(this.base, 0.3, {alpha:0.08});
            return;
        }// end function

        private function onButtonRollOver(param1:MouseEvent) : void
        {
            TweenMax.to(this.base, 0.3, {alpha:0.4});
            Sounds.getInstance().playById("DING", 0.8, 0);
            return;
        }// end function

    }
}
